import layout from '@/layout'
export default {
  path: '/employee',
  component: layout,
  children: [
    {
      path: '',
      name: 'employee',
      component: () => import('@/views/employee'),
      meta: {
        title: '员工',
        icon: 'people'
      }
    },
    {
      // path: '/employee/detail', // 绝对地址。访问这个页面就必须是：http://xxxx/employee/detail
      // path: 'detail', // 相对地址。访问这个页面的方式是：带上1级路由的path
      path: 'detail/:id?', // 它能匹配的规则是： http://xxxx/employee/detail  or http://xxxx/employee/detail/100
      name: 'employee',
      component: () => import('@/views/employee/detail.vue'),
      hidden: true,
      meta: {
        title: '员工详情'
      }
    }
  ]
}
